import {trigger, state, style, transition, animate, keyframes} from '@angular/animations';

export const menu = trigger('menu', [
    state('on', style({
        opacity: 1,
        visibility: 'visible'
    })), /*开*/
    state('off', style({
        opacity: 0,
        visibility: 'hidden'
    })), /*关*/
    transition('on => off', animate('500ms')),
    transition('off => on', animate('500ms'))
]);
